cmake_minimum_required (VERSION 2.8.11)
if(APPLE)
set(CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++")
endif()

project(vengine-qi)

add_subdirectory (Game)
add_subdirectory (Engine)

SET_PROPERTY (GLOBAL PROPERTY USE_FOLDERS ON)
SET_PROPERTY (TARGET Game 				PROPERTY FOLDER "Executables")
SET_PROPERTY (TARGET VEngine 			PROPERTY FOLDER "Libraries")
SET_PROPERTY (TARGET VEngineWindow		PROPERTY FOLDER "Libraries")
SET_PROPERTY (TARGET VEngineRenderer 	PROPERTY FOLDER "Libraries")

set_target_properties( Game PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Binaries )
set_target_properties( VEngine PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Binaries )
set_target_properties( VEngineWindow PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Binaries )
set_target_properties( VEngineRenderer PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Binaries )
